﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SJC.Services
{
    public class RoomsTSercice
    {
        static string tableName = "RoomsT";
        //返回表格成功更新的行数
        public static int UpdateSqlDBBuilder()
        {
            return DBHelper.UpdateSqlDBBuilder(tableName);
        }
        //显示表格数据方法
        public static DataTable ShowDataTable()
        {
            string sqlCommand = "select * from "+tableName;
            return DBHelper.ShowDataTable(sqlCommand,tableName);
        }

    }
}
